import request from '@/utils/axios';
import type{ RegisterFormType,CheckCodeType } from '@/models/register/index'

export const register = async (data: RegisterFormType) => {
    return request.put('/tuanUser/register', data)
}

export const getcheckCode = async () => {
    return request.get('/common/checkCode')
}

export const getEmailCode = async (data: CheckCodeType) => {
    return request.get('/common/sendEmailCode', {
        params: data
    })
}